package com.joysuch.wwyt.mh.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.joysuch.wwyt.mh.dto.CustomizeMonitorBigScreenPointDto;
import com.joysuch.wwyt.mh.dto.CustomizeMonitorLocationInfoDto;
import com.joysuch.wwyt.mh.dto.CustomizeMonitorPointDto;
import com.joysuch.wwyt.mh.dto.CustomizeMonitorTypeUseCountDto;
import com.joysuch.wwyt.mh.entity.CustomizeMonitorPoint;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joysuch.wwyt.mh.entity.MhMonitoringPoint;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jingwk
 * @since 2021-07-05
 */
public interface CustomizeMonitorPointMapper extends BaseMapper<CustomizeMonitorPoint> {

    IPage<CustomizeMonitorPointDto> findListPaging(Page<CustomizeMonitorPointDto> page, String nameOrCode, Long customizeMonitoringTypeId,String typeCode, String companyCode, Long tenantId);

    List<CustomizeMonitorTypeUseCountDto> countPointByType(String companyCode, Long tenantId);

    List<CustomizeMonitorLocationInfoDto> allList(String companyCode, Long tenantId);

    List<CustomizeMonitorBigScreenPointDto> findBigScreenPointData(String companyCode, Long tenantId);

    void updateByIds(@Param("state") Integer state,@Param("ids") List<Long> ids);

    List<String> findAll(@Param("tenantId")Long tenantId, @Param("orgCode")String orgCode);
}
